import unittest
from app.common.mongo_conn import MongoConn

from test.test_base import TestBase

class mongoConnTestCase(unittest.TestCase, TestBase):
    def setUp(self):
        self.initLog('../../logger.ini')
        self.initMongoDb('../../config.ini')
        self.mongoConn = MongoConn()

    def testQuery(self):
        for document in self.mongoConn.queryAll(collName="feeds"):
            print(document)

if __name__ == '__main__':
    unittest.main()